package com.lwm.base;

import org.junit.Test;

/**
 * @author liweimin
 * @date 2020/9/22 16:44
 * @description
 */
public class YunSuanFu {
    @Test
    public void test01(){
        String a = "hello world";
        if (a instanceof String) {
            System.out.println("123");
        } else {
            System.out.println("321");
        }
        int i = 0;
        System.out.println(Math.pow(7,7));
    }
    @Test
    public void test02(){
        int a =2,b=3;
        if (a==3&&b--<3)
            System.out.println(b);
        System.out.println(b);
    }
    @Test
    public void test03(){
        System.out.println(3&4);
        System.out.println(3|4);
        System.out.println(3^4);
        System.out.println(3>>1);
        /**
         * 0000 0011    0000 1100 = 12
         */
        System.out.println(3<<2);
    }
    @Test
    public void test04(){
        String c = 89>60?"d":"c";
    }
}
